FROM openjdk:8-jre-alpine

ENV JAVA_OPS -XX:+UnlockExperimentalVMOptions \
             -XX:+UseCGroupMemoryLimitForHeap \
             -Xms1024m -Xmx1024m \
             -XX:MaxDirectMemorySize=2G \
             -XX:+UnlockDiagnosticVMOptions


ADD target/*-exec.jar /app.jar

CMD echo "cs-core-applet-service application will start ..." && \
    java -Djava.security.egd=file:/dev/./urandom ${JAVA_OPS} -jar /app.jar
